#ifndef _HCC_ERROR_CODE_MID_NVM_H_
#define _HCC_ERROR_CODE_MID_NVM_H_

#include "ofc/ofc_types.h"
#include "hcc/hcc_error_code.h"
#include "hcc/hcc_error_code_mid.h"

#ifdef __cplusplus
extern "C" {
#endif

#define HCC_MAKE_MID_NVM_ERROR(error_code) (int)HCC_ERROR(HCC_MAKE_MID_WARE_ERROR(kHccMidWareStorage, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * Storage模块定义:
 */
typedef Int32 THccMidNvmErrorCodeEnum;

#define kHccMidNvmSuccess	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccMidNvmFilure	HCC_MAKE_MID_NVM_ERROR(1)	///<失败
#define kHccMidNvmUnknown	HCC_MAKE_MID_NVM_ERROR(2)	///<未知错误
#define kHccMidNvmNotExist	HCC_MAKE_MID_NVM_ERROR(3)	///<不存在(如队列号)
#define kHccMidNvmIsIllegal	HCC_MAKE_MID_NVM_ERROR(4)	///<不合法(如: 参数不合法)
#define kHccMidNvmVersion	HCC_MAKE_MID_NVM_ERROR(5)	///<版本太低
#define kHccMidNvmIsExisted	HCC_MAKE_MID_NVM_ERROR(6)	///<已存在
#define kHccMidNvmSizeError	HCC_MAKE_MID_NVM_ERROR(7)	///<尺寸错误(如: 尺寸不够)
#define kHccMidNvmAttrInvalid	HCC_MAKE_MID_NVM_ERROR(8)	///<属性无效
#define kHccMidNvmStateInvalid	HCC_MAKE_MID_NVM_ERROR(9)	///<状态无效
#define kHccMidNvmHandleInvalid	HCC_MAKE_MID_NVM_ERROR(10)	///<句柄无效
#define kHccMidNvmAccessIllegal	HCC_MAKE_MID_NVM_ERROR(11)	///<存取非法

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_MID_NVM_H_
/**
 * @
 */
